<?php
/*----------------------------------------------------------------
 | Software: [WillPHP framework]
 | Site: 113344.com
 |----------------------------------------------------------------
 | Author: 无念 <24203741@qq.com>
 | WeChat: www113344
 | Copyright (c) 2020-2023, 113344.com. All Rights Reserved.
 |---------------------------------------------------------------*/
//自定义验证正则配置
return [
    'user' => '/^\w{4,20}$/', //用户名
    'pwd' => '/^\w{6,12}$/', //密码
    'string' => '/^\w+$/', //数字字母下划线
    'number' => '/^[0-9]*$/', //正数
    'chs' => '/^[\x7f-\xff]+$/', //汉字
    'mobile' => '/^1[3-9]\d{9}$/', //手机号
    'qq' => '/^[1-9][0-9]{4,12}$/', //qq号
    'idcard' => '/^(\d{15}$|^\d{18}$|^\d{17}(\d|X|x))$/', //身份证号
    'bankcard' => '/^[1-9][0-9]{18}$/', //银行卡号
];